package org.example.start;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Component
public class TestBean implements InitializingBean {

    @PostConstruct
    public void fun(){
        System.out.println("TestBean fun postConstruct初始化");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("TestBean fun afterPropertiesSet初始化");
    }
}
